import { configureStore } from "@reduxjs/toolkit";
import authReducer from "./slice/auth";
import siderCommonReducer from "./slice/siderCommon";
import dictReducer from "./slice/dict";
import hospReducer from "./slice/hosp";
import pageCommonReducer from "./slice/pageCommon";
import categoryReducer from "./slice/category";

export const store = configureStore({
    reducer: {
        // 将auth切片注入store
        auth: authReducer,
        // 将siderCommon切片注入store
        siderCommon: siderCommonReducer,
        // 将dict切片注入store
        dict: dictReducer,
        // 将hosp切片注入store
        hosp: hospReducer,
        // 将pageCommon切片注入store
        pageCommon: pageCommonReducer,
        // 将category切片注入store
        category: categoryReducer,
    },
});
